#include "qdataoperatorpickupdialog.h"
#include "ui_qdataoperatorpickupdialog.h"

QDataOperatorPickUpDialog::QDataOperatorPickUpDialog(const QStringList &typs, QWidget *parent):
    QBaseDialog(parent),
    ui(new Ui::QDataOperatorPickUpDialog)
{
    ui->setupUi(this);
    ui->type_combo->addItems(typs);
    ui->type_combo->setCurrentIndex(0);
}

QDataOperatorPickUpDialog::~QDataOperatorPickUpDialog()
{
    delete ui;
}

void QDataOperatorPickUpDialog::on_okBtn_clicked()
{
    m_type=ui->type_combo->currentText();
    close();
}

void QDataOperatorPickUpDialog::on_cancelBtn_clicked()
{
    close();
}

QString QDataOperatorPickUpDialog::get_type()
{
    return m_type;
}
